package cn.lingyangwl.agile.system.model.rqrs.user;

import cn.lingyangwl.framework.validation.IsPhone;
import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author shenguangyang
 */
@Data
public class UserRegisterReq {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String smsCode;

    @IsPhone(message = "请输入正确的手机号")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String phone;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String userName;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String password;

    @ApiModelProperty(value = "租户id")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private Long tenantId;
}
